import {createRouter, createWebHashHistory} from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(), // hash模式：createWebHashHistory，history模式：createWebHistory
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: "/login",
            name: 'login',
            component: () => import('@/views/login.vue'),
        },
        {
            path: "/mine",
            name: 'mine',
            component: () => import('@/views/mine.vue'),
        },
        {
         path:"/draftBox",
         name:"draftBox",
            component:()=>import('@/views/draftBox.vue'),
        },
        {
            path:"/content",
            name:"content",
            component:()=>import('@/views/content.vue'),
        },
    ]
})

export default router;